package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MonthPerformanceMapper;
import com.ruoyi.system.domain.MonthPerformance;
import com.ruoyi.system.service.IMonthPerformanceService;

/**
 * 实施情况月报Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-18
 */
@Service
public class MonthPerformanceServiceImpl implements IMonthPerformanceService 
{
    @Autowired
    private MonthPerformanceMapper monthPerformanceMapper;

    /**
     * 查询实施情况月报
     * 
     * @param id 实施情况月报主键
     * @return 实施情况月报
     */
    @Override
    public MonthPerformance selectMonthPerformanceById(Long id)
    {
        return monthPerformanceMapper.selectMonthPerformanceById(id);
    }

    /**
     * 查询实施情况月报列表
     * 
     * @param monthPerformance 实施情况月报
     * @return 实施情况月报
     */
    @Override
    public List<MonthPerformance> selectMonthPerformanceList(MonthPerformance monthPerformance)
    {
        return monthPerformanceMapper.selectMonthPerformanceList(monthPerformance);
    }

    /**
     * 新增实施情况月报
     * 
     * @param monthPerformance 实施情况月报
     * @return 结果
     */
    @Override
    public int insertMonthPerformance(MonthPerformance monthPerformance)
    {
        return monthPerformanceMapper.insertMonthPerformance(monthPerformance);
    }

    /**
     * 修改实施情况月报
     * 
     * @param monthPerformance 实施情况月报
     * @return 结果
     */
    @Override
    public int updateMonthPerformance(MonthPerformance monthPerformance)
    {
        return monthPerformanceMapper.updateMonthPerformance(monthPerformance);
    }

    /**
     * 批量删除实施情况月报
     * 
     * @param ids 需要删除的实施情况月报主键
     * @return 结果
     */
    @Override
    public int deleteMonthPerformanceByIds(Long[] ids)
    {
        return monthPerformanceMapper.deleteMonthPerformanceByIds(ids);
    }

    /**
     * 删除实施情况月报信息
     * 
     * @param id 实施情况月报主键
     * @return 结果
     */
    @Override
    public int deleteMonthPerformanceById(Long id)
    {
        return monthPerformanceMapper.deleteMonthPerformanceById(id);
    }
}
